package com.annotation.demo;

/**
 * @ClassName calculator
 * @Date 2021/7/22 22:54
 * @Author 李明杰
 * @Description
 */

public class Calculator {
    @Check
    public void add() {
        System.out.println("1+0=" + (1 + 0));
    }

    @Check
    public void sub() {
        System.out.println("1-0=" + (1 - 0));
    }

    @Check
    public void mul() {
        System.out.println("1*0=" + (1 * 0));
    }

    @Check
    public void div() {
        System.out.println("1/0=" + (1 / 0));
    }

    public void show() {
        System.out.println("无bug！");
    }

}
